﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using ImageProcessor.Shared;

namespace ImageProcessor.Tim
{
    /// <summary>
    /// Interaction logic for BinarizationControl.xaml
    /// </summary>
    public partial class BinarizationControl : UserControl , ITabPanel
    {
        public BinarizationControl()
        {
            InitializeComponent();
        }

        public void Load(MainViewModel mainVM)
        {
            var binarizationVM = new BinarizationVM(mainVM);
            DataContext = binarizationVM;
            Settings = new BinarizationSettingsControl() {DataContext = binarizationVM};
        }

        public string DisplayName { get { return "Бинаризация"; } }

        public Control Settings { get; private set; }
    }
}
